
// ========== COMMON 模块 ==========
// 全局通用状态枚举
export const CommonStatusEnum = {
    ENABLE: 1, // 开启
    DISABLE: 0 // 禁用
}

// 全局用户类型枚举
export const UserTypeEnum = {
    MEMBER: 1, // 会员
    ADMIN: 2 // 管理员
}

// ========== SYSTEM 模块 ==========
/**
 * 菜单的类型枚举
 */
export const SystemMenuTypeEnum = {
    DIR: 1, // 目录
    MENU: 2, // 菜单
    BUTTON: 3 // 按钮
}

/**
 * 小程序用户类型
 */
export const CommonUserTypeEnum = {
    NORMAL_USER: 1,
    BUSINESS: 2,
    DISTRIBUTOR_LEVEL1: 3,
    DISTRIBUTOR_LEVEL2: 4
}
export const ORDER_STATUS = {
    ALL: '',
    PENDING: 'pending',
    PAID: 'paid',
    // 已确认（已发货）
    SHIPPED: 'shipped',
    COMPLETED: 'completed',
    CANCELLED: 'cancelled',
    REFUNDING: 'refunding',
    REFUNDED: 'refunded',
    REFUND_FAILED: 'refund_failed',
  }
  // 文本
  export const TRAVEL_ORDER_STATUS_TEXT = {
    [ORDER_STATUS.ALL]: '全部',
    [ORDER_STATUS.PENDING]: '待付款',
    [ORDER_STATUS.PAID]: '待确认',
    [ORDER_STATUS.SHIPPED]: '已确认',
    [ORDER_STATUS.COMPLETED]: '已完成',
    [ORDER_STATUS.CANCELLED]: '已取消',
    [ORDER_STATUS.REFUNDING]: '退款中',
    [ORDER_STATUS.REFUNDED]: '已退款',
    [ORDER_STATUS.REFUND_FAILED]: '退款失败',
  }